package ooday02.person;

public class Doctor extends Person {
    String title;//头衔

    public Doctor(String title) {
        super();
        this.title = title;
    }
    Doctor(){
        super();
        System.out.println(this instanceof Hushi);
        System.out.println(this instanceof Doctor);
        System.out.println(this instanceof Person);
    }

    Doctor(String name, int age, String address, String title) {
        //super();
        super(name, age, address);
        this.title=title;
    }

    //    Doctor(String name,int age,String address,String title){
//        super(name,age,address);
//        this.title=title;
//    }
    void cut() {
        System.out.println(title+"正在手术中...");
    }
//     void Doctor(){
//         System.out.println("医生普通方法");
//
//    }


    void eat(int s) {
        System.out.println("医生在吃第"+s+"餐");
    }
}
